<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<html>
<head>
	<title>编辑图书</title>
	<s:head/>
</head>
<body Background="pic/p1.jpg">
	<h2>
        <s:if test="null == book">
            增加图书
        </s:if>
        <s:else>
            编辑图书
        </s:else>
    </h2>
	<s:form name="editForm" action="save" validate="true">
	
		 <s:textfield label="书名" name="book.bookName"/>
		 <s:textfield label="作者" name="book.bookAuthor"/>
		 <s:textfield label="出版社" name="book.bookPublish"/>
	     <s:datetimepicker label="出版日期" name="book.bookDate"></s:datetimepicker>
	     <s:textfield label="ISBN" name="book.bookIsbn"/>
		 <s:textfield label="页数" name="book.bookPage"/>
		 <s:textfield label="价格(元)" name="book.bookPrice"/>
		 <s:textfield label="内容摘要" name="book.bookContent"/>
		 <s:if test="null == book">
		 	<s:hidden name="book.bookId" value="%{bookId}"/>
		 </s:if>	 	
	     <s:else>
		 	<s:hidden name="book.bookId" />
		 </s:else>
		 <s:hidden name="queryName" />
		 <s:hidden name="queryValue" />
		 <s:submit value="%{getText('保存')}" />
	</s:form>

<p><a href="<s:url action="list"/>">返回</a></p>
</body>
</html>
